package cn.auction.util;

import java.util.List;

public class Page<T> {
    public static final int PAGESIZE = 10;//定义一页的总数
    private Integer count;//总记录数
    private List<T> pageList; //拍卖信息集合
    private Integer pageIndex; //页数
    private Integer totalPages;//总页数

    public Page() {
    }

    public Integer getCount() {
        return this.count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<T> getPageList() {
        return this.pageList;
    }

    public void setPageList(List<T> pageList) {
        this.pageList = pageList;
    }

    public Integer getPageIndex() {
        return this.pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getTotalPages() {
        this.totalPages = this.count / 10;
        if (this.count % 10 != 0) {
            Integer var2 = this.totalPages;
            Integer var3 = this.totalPages = this.totalPages + 1;
        }

        return this.totalPages;
    }
}
